COM AT+CCFC: Call forwarding
COM
COM Used variables:
COM <DA3> Destination address for call forwarding
COM
COM Version History:
COM Version 1.0      11.2003   R. Weiden	started, with adaption for model C62
COM Version 1.1   02.12.2003   R. Weiden        adapted to R65 platform, bugfixes in number registration
COM Version 1.2   03.12.2003   R. Weiden        added test case with forwarding after 5 seconds, if not answered
COM Version 1.3   27.08.2004   R. Weiden	made runable with ATT2.0, USERTEST added
COM -------------------------------------------------------------------------------------------------------------

from attglobals import *

AT+CCFC=?
WAIT FOR +CCFC
COM deactivate all forwarding
AT+CCFC=0,0
WAIT FOR OK
AT+CCFC=2,0
WAIT FOR OK
COM unregister all forwarding numbers
AT+CCFC=0,4
WAIT FOR OK
AT+CCFC=2,4
WAIT FOR OK
COM verify
AT+CCFC=0,2
WAIT FOR +CCFC: 0,1  
AT+CCFC=2,2
WAIT FOR +CCFC: 0,1 

COM register forwarding number DA3 for all incoming calls, implicitly activate forwarding
AT+CCFC=0,3,PhoneNumber3
WAIT FOR OK

COM verify 
AT+CCFC=0,2
WAITFOR (1, '+CCFC: 1,1,"', PhoneNumber3, '"')

USERTEST ('Please verify in MMI that forwarding for all calls is active. Then dial up your mobile and check if call is forwarded to ', PhoneNumber3, '!')

COM Switch off forwarding
AT+CCFC=0,0
WAIT FOR OK
COM verify
AT+CCFC=0,2
WAITFOR (1, '+CCFC: 0,1,"', PhoneNumber3, '"')
USERTEST ('Please verify in MMI that forwarding is inactive. Then dial up your mobile and verify this...')

COM switch on again, without registraion
AT+CCFC=0,1
WAIT FOR OK
COM verify
AT+CCFC=0,2
WAITFOR (1, '+CCFC: 1,1,"', PhoneNumber3, '"')

COM try to activate with invalid reason
AT+CCFC=7,1
WAIT FOR ERROR

COM deactivate forwarding
AT+CCFC=0,0
WAIT FOR OK
COM unregister forwarding number
AT+CCFC=0,4
WAIT FOR OK
COM verify
AT+CCFC=0,2
WAIT FOR +CCFC: 0,1

COM register forwarding number DA3, implicitly activate forwarding if no answer (for voice calls)
AT+CCFC=2,3,PhoneNumber3
WAIT FOR OK
COM verify 
AT+CCFC=2,2
WAITFOR (1, '+CCFC: 1,1,"', PhoneNumber3, '"')

USERTEST ('Please verify in MMI that forwarding is active for non-answered calls. Then dial up your mobile, wait 20 seconds and check if call is then forwarded to ', PhoneNumber3, '!')

WAIT 1000

COM switch off call forwarding
AT+CCFC=2,0
WAIT FOR OK
COM query and check if ok...
AT+CCFC=2,2
WAIT FOR +CCFC: 0,1

COM register forwarding number DA3, implicitly activate forwarding if no answer after 5 seconds 
AT+CCFC=2,3,PhoneNumber3,,,,,5
WAIT FOR OK
COM verify 
AT+CCFC=2,2
WAITFOR (1, '+CCFC: 1,1,"', PhoneNumber3, '",145,,,5')

USERTEST ('Please verify in MMI that forwarding is active for non-answered calls. Then dial up your mobile, wait 5 seconds and check if call is then forwarded to ', PhoneNumber3, '!')

COM switch off call forwarding
AT+CCFC=2,0
WAIT FOR OK
COM query and check if ok...
AT+CCFC=2,2
WAIT FOR +CCFC: 0,1

